			<div id="info">
				&copy;2010 <a href="<?php the_site();?>"><?php the_name();?></a>
				<a href="<?php the_site();?>help">Help</a>
				<a href="<?php the_site();?>about">About</a>
				Powered by <a href="http://dallaslu.com">Dallas Lu</a> Hosted by <a href="http://billing.vpsyou.com/aff.php?aff=139">VPSYOU</a>
			</div>
		</div>
	<?php if ( $isCreatePage ){?>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
	<script type="text/javascript">
		var lastContent = '';
		var lastSaveAt = 0;
		
		var delay = 1000; //ms
		
		var $text;
		var $curl;

		$(function(){
		
			$("#loading").ajaxStart(function(){
				$(this).show('normal');
			}).ajaxComplete(function(){
				$(this).hide('fast');
				setTimeout(save,delay);
			});
		
			$curl = $('#current-url');
			$text = $('#text');
			lastContent = $text.val();
			$text.focus();
			setTimeout(save,delay);
		});
		function save(){
			if( lastContent == $text.val() ) {
				setTimeout(save,delay);
				return;
			}
			var content = $text.val();
			$.post('<?php the_site();?>'
				,{'content':content,'url':$curl.val(),'id':<?php the_note_id();?>}
				,function(json){
					if( json.success ){
						$curl.val(json.note.url);
						lastContent = content;
					}
					lastSaveAt = (+ new Date);
			},'json');
		}
	</script>
	<?php } ?>
	<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', 'UA-12034228-6']);
		_gaq.push(['_trackPageview']);

		(function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
	</script>
	</body>
	</html>